package com.my.test.ctrl;

import java.util.*;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class CommonCtrl {

	@RequestMapping("/hello")
	public String hello(){
		return "hello";
	}
	@RequestMapping("/JsonMap")
	@ResponseBody
	public Map JsonMap(){
		Map map = new HashMap();
		map.put("id", 1);
		map.put("name", "hzb");
		return map;
	}
}
